3.351 \(\int (a+a \sin (e+f x))^{3/2} \sqrt{c-c \sin (e+f x)} \, dx\)

Optimal. Leaf size=43 \[ \frac{c \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 f \sqrt{c-c \sin (e+f x)}} \]

[Out]

(c*Cos[e + f*x]*(a + a*Sin[e + f*x])^(3/2))/(2*f*Sqrt[c - c*Sin[e + f*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.0818158, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.033, Rules used = {2738} \[ \frac{c \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 f \sqrt{c-c \sin (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Int[(a + a*Sin[e + f*x])^(3/2)*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

(c*Cos[e + f*x]*(a + a*Sin[e + f*x])^(3/2))/(2*f*Sqrt[c - c*Sin[e + f*x]])

Rule 2738

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
(-2*b*Cos[e + f*x]*(c + d*Sin[e + f*x])^n)/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]]), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rubi steps

\begin{align*} \int (a+a \sin (e+f x))^{3/2} \sqrt{c-c \sin (e+f x)} \, dx &=\frac{c \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt{c-c \sin (e+f x)}}\\ \end{align*}

Mathematica [A]  time = 0.203004, size = 60, normalized size = 1.4 \[ -\frac{a \sec (e+f x) \sqrt{a (\sin (e+f x)+1)} \sqrt{c-c \sin (e+f x)} (\cos (2 (e+f x))-4 \sin (e+f x))}{4 f} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Sin[e + f*x])^(3/2)*Sqrt[c - c*Sin[e + f*x]],x]

[Out]

-(a*Sec[e + f*x]*(Cos[2*(e + f*x)] - 4*Sin[e + f*x])*Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]])/(4*f
)

________________________________________________________________________________________

Maple [A]  time = 0.158, size = 63, normalized size = 1.5 \begin{align*} -{\frac{\sin \left ( fx+e \right ) \left ( -1- \left ( \cos \left ( fx+e \right ) \right ) ^{2}+\sin \left ( fx+e \right ) \right ) }{2\,f \left ( \cos \left ( fx+e \right ) \right ) ^{3}}\sqrt{-c \left ( -1+\sin \left ( fx+e \right ) \right ) } \left ( a \left ( 1+\sin \left ( fx+e \right ) \right ) \right ) ^{{\frac{3}{2}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x)

[Out]

-1/2/f*(-c*(-1+sin(f*x+e)))^(1/2)*sin(f*x+e)*(a*(1+sin(f*x+e)))^(3/2)*(-1-cos(f*x+e)^2+sin(f*x+e))/cos(f*x+e)^
3

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}} \sqrt{-c \sin \left (f x + e\right ) + c}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^(3/2)*sqrt(-c*sin(f*x + e) + c), x)

________________________________________________________________________________________

Fricas [A]  time = 1.35472, size = 157, normalized size = 3.65 \begin{align*} -\frac{{\left (a \cos \left (f x + e\right )^{2} - 2 \, a \sin \left (f x + e\right ) - a\right )} \sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c}}{2 \, f \cos \left (f x + e\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

-1/2*(a*cos(f*x + e)^2 - 2*a*sin(f*x + e) - a)*sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)/(f*cos(f*x +
 e))

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**(3/2)*(c-c*sin(f*x+e))**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}} \sqrt{-c \sin \left (f x + e\right ) + c}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(3/2)*(c-c*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate((a*sin(f*x + e) + a)^(3/2)*sqrt(-c*sin(f*x + e) + c), x)